package com.study.shiro.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: chenhs
 * @date: Created in 14:26 2020/1/3
 **/
@RestController
public class TestController {

    @RequestMapping("/admin/test1")
    public String test1() {
        return "test1 test1";
    }

    @RequestMapping("/account/test2")
    @RequiresPermissions("account:add")
    public String test2(){
        return "aaa";
    }

}
